package com.atguigu.serviceedu.controller;

import com.atguigu.commonutils.R;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/eduService/user")
//@CrossOrigin
public class EduUserLoginController {

    @PostMapping("/login")
    public R doLogin(){
        return R.ok().data("data","admin");
    }

    @GetMapping("/info")
    public R getLoginInfo(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","/static/2222.jpeg");
    }
}
